package com.example.codegen;

public class ReturnStatement implements Statement {
    public Variables variables;

    public ReturnStatement(Variables variables) {
        this.variables = variables;
    }

    public String toJava() {
        return "return" + " " + variables.toJava() + ";";
    }

    public String toGo() {
        return "return" + " " + variables.toGo();
    }

    @Override
    public String toJs() {
        return "return" + " " + variables.toJs() + ";";
    }

    @Override
    public String toCSharp() {
        return "return" + " " + variables.toCSharp() + ";";
    }

    @Override
    public String toCJ() {
        return "return " + variables.toCJ();
    }
}
